#include "Vector3.h"


Vector3::Vector3(float x, float y, float z) : x(x), y(y), z(z)
{
}


Vector3::~Vector3(void)
{
	
}

Vector3* Vector3::operator*(float& scalar)
{
	Vector3* newVector = new Vector3(this->x * scalar, this->y * scalar, this->z * scalar); //check for leaks
	return newVector;
}

Vector3* Vector3::operator*(Vector3& vec3)
{
	Vector3* newVector = new Vector3(this->x * vec3.x , this->y * vec3.y, this->z * vec3.z); //check for leaks
	return newVector;
}